package me.zhengjie.modules.blog.service;

import me.zhengjie.modules.blog.domain.BlogUser;
import me.zhengjie.modules.blog.service.dto.BlogUserDTO;
/**
 * @author zhangqiang
 * @date 2019-03-01
 */
public interface BlogUserService {

    /**
     * get
     * @param id
     * @return
     */
    BlogUserDTO findById(long id);

    /**
     * create
     * @param resources
     * @return
     */
    BlogUserDTO create(BlogUser resources);

    /**
     * update
     * @param resources
     */
    void update(BlogUser resources);

    /**
     * delete
     * @param id
     */
    void delete(Long id);

    /**
     * findByName
     * @param BlogUserName
     * @return
     */
    BlogUser findByName(String BlogUserName);
}
